module(
    name = "rules_bazel_integration_test",
    version = "0.13.0",
)

bazel_dep(name = "bazel_skylib", version = "1.4.1")
bazel_dep(name = "rules_python", version = "0.19.0")
bazel_dep(name = "platforms", version = "0.0.6")
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.16.0")

register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain")

# Must keep the Bazel version listed in WORKSPACE in sync with those loaded
# below.
bazel_binaries = use_extension(
    "//:extensions.bzl",
    "bazel_binaries",
    dev_dependency = True,
)
bazel_binaries.download(version_file = "//:.bazelversion")
bazel_binaries.download(version = "7.0.0-pre.20230215.2")
use_repo(bazel_binaries, "bazel_binaries")

download_sample_file = use_extension(
    "//examples/env_var_with_rootpath:sample_file_extension.bzl",
    "download_sample_file",
    dev_dependency = True,
)

use_repo(download_sample_file, "sample_file")
